import mongoose from "mongoose";
const videoDataSchema = new mongoose.Schema(
  {
    video: { type: String, required: true },
    name: { type: String, required: true },
    type: {
      type: String,
      enum: ["video", "iframe"],
      required: true,
    },
  },
  { collection: "VideoData" }
);

const VideoData = mongoose.model("VideoData", videoDataSchema);

export default VideoData;
